package com.baor.finance.service.impl;

import java.util.List;

import com.baor.finance.domain.TotleFlow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baor.finance.mapper.TFlowMapper;
import com.baor.finance.domain.TFlow;
import com.baor.finance.service.ITFlowService;

/**
 * 财务流水Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-18
 */
@Service
public class TFlowServiceImpl implements ITFlowService 
{
    @Autowired
    private TFlowMapper tFlowMapper;

    @Override
    public TotleFlow flowAmass() {
        return tFlowMapper.flowAmass();
    }

    /**
     * 查询财务流水
     * 
     * @param flowId 财务流水主键
     * @return 财务流水
     */
    @Override
    public TFlow selectTFlowByFlowId(Long flowId)
    {
        return tFlowMapper.selectTFlowByFlowId(flowId);
    }

    /**
     * 查询财务流水列表
     * 
     * @param tFlow 财务流水
     * @return 财务流水
     */
    @Override
    public List<TFlow> selectTFlowList(TFlow tFlow)
    {
        return tFlowMapper.selectTFlowList(tFlow);
    }

    /**
     * 新增财务流水
     * 
     * @param tFlow 财务流水
     * @return 结果
     */
    @Override
    public int insertTFlow(TFlow tFlow)
    {
        return tFlowMapper.insertTFlow(tFlow);
    }

    /**
     * 修改财务流水
     * 
     * @param tFlow 财务流水
     * @return 结果
     */
    @Override
    public int updateTFlow(TFlow tFlow)
    {
        return tFlowMapper.updateTFlow(tFlow);
    }

    /**
     * 批量删除财务流水
     * 
     * @param flowIds 需要删除的财务流水主键
     * @return 结果
     */
    @Override
    public int deleteTFlowByFlowIds(Long[] flowIds)
    {
        return tFlowMapper.deleteTFlowByFlowIds(flowIds);
    }

    /**
     * 删除财务流水信息
     * 
     * @param flowId 财务流水主键
     * @return 结果
     */
    @Override
    public int deleteTFlowByFlowId(Long flowId)
    {
        return tFlowMapper.deleteTFlowByFlowId(flowId);
    }
}
